<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" src="{:config('xhadmin.site_logo')}" width="80" height="80"/></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                       <span class="block m-t-xs">{:session('admin.role_name')}-{:session('admin.name')}</span>
                       
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="{:url('admin/login/out')}?id={:session('admin.userid')}">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">
                </div>
            </li>
            
            {volist name='menus' id='pmenu'}
                {empty name='pmenu.sub'}				    
					{if condition ="in_array($pmenu.access_url,session('admin.nodes')) || session('admin.role_id') eq 1 "}
					<li>
						<a class="J_menuItem" href="{$pmenu.url}" name="tabMenuItem">
							<i class="{$pmenu.icon}"></i>
							<span class="nav-label">{$pmenu.title}</span>
						</a>
					</li>
					{/if}					
                {else}
				{if condition ="in_array($pmenu.access_url,session('admin.nodes')) || session('admin.role_id') eq 1 "}
				<li>
					<a href="#">
						<i class="fa {$pmenu.icon}"></i>
						<span class="nav-label">{$pmenu.title}</span>
						<span class="fa arrow"></span>
					</a>
					<ul class="nav nav-second-level">
						{volist name='pmenu.sub' id='menu'}
							{empty name='menu.sub'}
								{if condition ="in_array($menu.access_url,session('admin.nodes')) || session('admin.role_id') eq 1 "}
								 <li>
									<a class="J_menuItem" href="{$menu.url}" name="tabMenuItem">
										<i class="{$menu.icon} nav-icon"></i>
										<span class="nav-label">{$menu.title}</span>
									</a>
								 </li>
								{/if}
							{else/}
								{if condition ="in_array($menu.access_url,session('admin.nodes')) || session('admin.role_id') eq 1 "}
								<li>
									<a href="J_menuItem">{$menu.title} <span class="fa arrow"></span>
									<i class="{$menu.icon} nav-icon"></i>
									</a>
									<ul class="nav nav-third-level" style="padding-left:20px;">
										{volist name='menu.sub' id='thirdmenu'}
											{if condition ="in_array($thirdmenu.access_url,session('admin.nodes')) || session('admin.role_id') eq 1 "}
											<li><a class="J_menuItem" href="{$thirdmenu.url}" name="tabMenuItem">{$thirdmenu.title}<i class="{$thirdmenu.icon} nav-icon"></i></a></li>
											{/if}
										{/volist}
										
									</ul>
								</li>
								{/if}
							{/empty}
						{/volist}
					</ul>
                </li>
				{/if}
				{/empty}
            {/volist}
			

        </ul>
    </div>
</nav>